<?php
session_start();
$user = $_SESSION["user"];
$title = $_POST["Title"];
$content = $_POST["Content"];
$updateTime = date_format(new DateTime(),'Y-m-d H-i-s');
$id = $_GET["id"];

$sql ="UPDATE `article` SET `Title`='$title',`Content`='$content',`UpdateTime`='$updateTime' WHERE Id=$id AND AuthorId=".$user["Id"];
$conn = new mysqli("localhost","root","","myblog");
$conn->query($sql);
if($conn->error) die($conn->error);

$url = "article_list4.php";

Header("Location: $url");die("");

?>